home *** CD-ROM | disk | FTP | other *** search
- Path: dove.nist.gov!libes
- From: libes@nist.gov (Don Libes)
- Newsgroups: comp.unix.shell,comp.lang.c
- Subject: Re: slowing it down
- Date: 29 Jan 1996 01:50:55 GMT
- Organization: National Institute of Standards and Technology
- Message-ID: <LIBES.96Jan28205055@muffin>
- References: <4ebh99$5q9@monmouth.edu> <9601270012.AA09395@dxmint.cern.ch>
- NNTP-Posting-Host: muffin.cme.nist.gov
- In-reply-to: Dan Pop's message of Sat, 27 Jan 1996 01:12:11 +0100
-
- In article <9601270012.AA09395@dxmint.cern.ch> Dan Pop <danpop@mail.cern.ch> writes:
- s0213031@moncol.monmouth.edu (RAJIV RODRIGUES) writes:
-
- >I ran a simple 'cat' on a DEC ALPHA (Digital Unix) to display a long (!) file.
- >I'm looking for some way to slow down ( not a pager ) the listing, so that
- >it scrolls at a comfortable speed. I tried a 'nice' at lowest priority with
- >no discernable effect.
- >
- >Anyone know any other utilities I could use?
-
- The right tool for this job is a serial terminal. You can control the
- scrolling speed by playing with the baud rate :-) Or by enabling smooth
- scroll (if available).
-
- Another solution is to write your own 'cat', which waits a certain amount
- of time before displaying a new line. The usleep function (nonstandard,
- but available on your platform) is all you need for the job.
-
- Here's a little Expect script to do it:
-
- set send_slow {1 .1}
- send -s [read [open $argv]]
-
- The "1 .1" means "send 1 char every .1 seconds". Modify to taste.
-
- Don
-